//全局性的公共样式：变量、class可直接引用
body, html {
  width: 100%
}

input::-ms-clear, input::-ms-reveal {
  display: none
}

*, :after, :before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box
}

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}

article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block
}

body {
  margin: 0;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
  font-variant: tabular-nums;
  line-height: 1.5;
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum"
}

[tabindex="-1"]:focus {
  outline: none !important
}

hr {
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
  overflow: visible
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: .5em;
  font-weight: 500
}

p {
  margin-top: 0;
  margin-bottom: 1em
}

abbr[data-original-title], abbr[title] {
  text-decoration: underline;
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help
}

address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit
}

input[type=number], input[type=password], input[type=text], textarea {
  -webkit-appearance: none
}

dl, ol, ul {
  margin-top: 0;
  margin-bottom: 1em
}

ol ol, ol ul, ul ol, ul ul {
  margin-bottom: 0
}

dt {
  font-weight: 500
}

dd {
  margin-bottom: .5em;
  margin-left: 0
}

blockquote {
  margin: 0 0 1em
}

dfn {
  font-style: italic
}

b, strong {
  font-weight: bolder
}

small {
  font-size: 80%
}

sub, sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline
}

sub {
  bottom: -.25em
}

sup {
  top: -.5em
}

a {
  text-decoration: none;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  -webkit-transition: color .3s;
  transition: color .3s;
  -webkit-text-decoration-skip: objects
}

//a:hover {
//  color: #2989ff
//}
//
//a:active {
//  color: #0051d4
//}
//
//a:active, a:hover {
//  text-decoration: none;
//  outline: 0
//}

//a[disabled] {
//  color: rgba(0, 0, 0, .25);
//  cursor: not-allowed;
//  pointer-events: none
//}

code, kbd, pre, samp {
  font-size: 1em;
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace
}

pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto
}

figure {
  margin: 0 0 1em
}

img {
  vertical-align: middle;
  border-style: none
}

svg:not(:root) {
  overflow: hidden
}

[role=button], a, area, button, input:not([type=range]), label, select, summary, textarea {
  -ms-touch-action: manipulation;
  touch-action: manipulation
}

table {
  border-collapse: collapse
}

caption {
  padding-top: .75em;
  padding-bottom: .3em;
  //color: rgba(0, 0, 0, .45);
  text-align: left;
  caption-side: bottom
}

th {
  text-align: inherit
}

button, input, optgroup, select, textarea {
  margin: 0;
  //color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit
}

button, input {
  overflow: visible
}

button, select {
  text-transform: none
}

[type=reset], [type=submit], button, html [type=button] {
  -webkit-appearance: button
}

[type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner, button::-moz-focus-inner {
  padding: 0;
  border-style: none
}

input[type=checkbox], input[type=radio] {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0
}

input[type=date], input[type=datetime-local], input[type=month], input[type=time] {
  -webkit-appearance: listbox
}

textarea {
  overflow: auto;
  resize: vertical
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0
}

legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: .5em;
  padding: 0;
  //color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal
}

progress {
  vertical-align: baseline
}

[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button {
  height: auto
}

[type=search] {
  outline-offset: -2px;
  -webkit-appearance: none
}

[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration {
  -webkit-appearance: none
}

::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button
}

output {
  display: inline-block
}

summary {
  display: list-item
}

template {
  display: none
}

[hidden] {
  display: none !important
}

.clearfix {
  zoom: 1
}

.clearfix:after, .clearfix:before {
  display: table;
  content: ""
}

.clearfix:after {
  clear: both
}

.w-full {
  width: 100%
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center
}

.text-right {
  text-align: right;
}

// flex 相关样式：START
.flex {
  display: flex;
  display: -webkit-flex;
}

.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

/****主轴水平 对齐方式***/
.flex-jc-fs {
  justify-content: flex-start;
}

.flex-jc-fe {
  justify-content: flex-end;
}

.flex-jc-sb {
  justify-content: space-between;
}

.flex-jc-c {
  justify-content: center;
}

.flex-jc-sa {
  justify-content: space-around;
}

/****副轴水平 对齐方式***/
.flex-ai-fs {
  align-items: flex-start;
}

.flex-ai-fe {
  align-items: flex-end;
}

.flex-ai-c {
  align-items: center;
}

.flex-ai-b {
  align-items: baseline;
}

.flex-ai-s {
  align-items: stretch;
}

/****主轴水平  换行方式***/
.flex-fw-w {
  flex-wrap: wrap;
}

.flex-fw-n {
  flex-wrap: nowrap;
}

.flex-fw-wr {
  flex-wrap: wrap-reverse;
}

/****主轴水平、垂直方向***/
//水平垂直居中
.flex-row-center {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

//主轴为水平方向，起点在左端，垂直居中
.flex-row-left {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

//主轴为水平方向，起点在右端，垂直居中
.flex-row-right {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

//两端对齐，项目之间的间隔都相等
.flex-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

//每个项目两侧的间隔相等
.flex-row-around {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: row;
}

//主轴为垂直方向，垂直居中
.flex-col-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


//主轴为垂直方向，起点在上沿，水平居中
.flex-col-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}


//主轴为垂直方向，起点在下沿，水平居中
.flex-col-bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

//水平方向（一个固定宽度，一个自适应填充）
/* 固定宽度 */
.fixed-width {
  flex: 0 0 auto;
}

/* 自适应宽度 */
.auto-full-width {
  flex: 1 1 auto;
}

//垂直方向（一个固定高度，一个自适应填充）
/**固定高度*/
.fixed-height {
  flex: 0;
}

/**自动填充剩余区域*/
.auto-full-height {
  flex: 1;
}

// flex 相关样式：END